package dk.au.cs.peterbn.processing;


import org.reflections.Reflections;

/**
 * ReflectionsFactory that only instantiates the reflections once.
 */
public class SingleInstantiationReflectionFactory extends ReflectionsFactory{

    private Reflections reflections;

    public SingleInstantiationReflectionFactory() {
        reflections = super.getReflections(new TestingCompilerOptions());
    }

    @Override
    public Reflections getReflections(CompilerOptions compilerOptions) {
        return reflections;
    }
}
